package org.edu.modules.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.edu.modules.base.entity.VeBaseSysMenu;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class VeBaseSysMenuTree implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("父id")
    private Integer pid;

    @ApiModelProperty("名称")
    private String text;

    @ApiModelProperty("链接地址")
    private String url;

    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("")
    private String iconcls;

    @ApiModelProperty("图标颜色")
    private String iconcolour;

    @ApiModelProperty("是否为分类1是0否")
    private Integer issort;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("菜单启用状态0否1是")
    private Integer status;

    @ApiModelProperty("是否仅开发者模式可见")
    private Integer isdev;

    @ApiModelProperty("终端系统ID")
    private Integer terminalid;

    @ApiModelProperty("子系统ID")
    private String appId;

    @ApiModelProperty("说明")
    private String tip;

    private List<VeBaseSysMenuTree> children;

    public VeBaseSysMenuTree() {
    }

    public VeBaseSysMenuTree(VeBaseSysMenu veBaseSysMenu) {
        this.id = veBaseSysMenu.getId();
        this.pid = veBaseSysMenu.getPid();
        this.text = veBaseSysMenu.getText();
        this.url = veBaseSysMenu.getUrl();
        this.path = veBaseSysMenu.getPath();
        this.iconcls = veBaseSysMenu.getIconcls();
        this.iconcolour = veBaseSysMenu.getIconcolour();
        this.issort = veBaseSysMenu.getIssort();
        this.sort = veBaseSysMenu.getSort();
        this.status = veBaseSysMenu.getStatus();
        this.isdev = veBaseSysMenu.getIsdev();
        this.terminalid = veBaseSysMenu.getTerminalid();
        this.appId = veBaseSysMenu.getAppId();
        this.tip = veBaseSysMenu.getTip();
        this.children = new ArrayList<VeBaseSysMenuTree>();
    }
}
